package com.order.service;

import com.usian.appraise.Appraise;
import com.usian.order.Order;
import com.usian.travelSchedule.TravelSchedule;
import com.usian.vo.ResultVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderService {

    List<Order> selectOrder(Integer id,Integer status);

    List<Order> selectTakeOrder(Integer id, Integer status);

    Object selectScenicOrder(String addres);

    TravelSchedule selectTravel(Integer addressId);

    int deleteStatus(Integer id, int orderStatus);

    int saveOrder(Order order);

    Integer selectTravelOrderStatuslook(Integer id);

    Integer selectById(Integer tradeid, Integer id);

    Object appraise(Integer designerId, Integer userid, Integer orderid, Appraise appraise);

    List<Order> getUnacceptedOrders(Integer orderStatus);

    int updateByStatus(Integer id, Integer orderStatus,Integer userId);

    List<Order> selectTakeOrders(Integer id, Integer status);

    Integer selectPay(Integer id);
}
